﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PageTemplate.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="RMS.Pages.Search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContent" runat="server">
    <h1>Search For Retreats</h1>
    <hr />
    <br />
    <table>
        <tr>
            <td style="vertical-align: middle;">
                <span class="bluetext">Search By: </span> 
            </td>
            <td style="vertical-align: middle;">
                <select id="cbCatSelect" runat="server">
                    <option value="All Categories">All Categories</option>
                    <option value="Day and Evening Programs">Day and Evening Programs</option>
                    <option value="Directed Retreats">Directed Retreats</option>
                    <option value="Healing and Transformation">Healing and Transformation</option>
                    <option value="Preached Retreats">Preached Retreats</option>
                    <option value="Religious Life">Religious Life</option>
                    <option value="Special Themes">Special Themes</option>
               </select>
            </td>
            <td style="vertical-align: middle;">
                &nbsp;&nbsp;
                <asp:Button ID="btnSearch" CssClass="myButton" runat="server" Text="Search" OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <hr />
	<br />
    <div>
        <asp:Repeater ID="Repeater1" ItemType="RMS.Models.Retreat" SelectMethod="GetRetreats" runat="server">
            
            <ItemTemplate>
                <div class="item">
                    <h3><%# Item.Ret_Title %></h3>
                    <p></p>
                                        
                    <table class="categoryTable"> <!-- Category Section -->
                    <tr>
                        <td><b>Categories:</b></td>
                        <td><%# Item.Ret_Main_Category %></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td> <%# Item.Ret_Category_Two %></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td> <%# Item.Ret_Category_Three %></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td> <%# Item.Ret_Category_Four %></td>
                    </tr>
                    </table> 
                    <p></p>

                    <table class="categoryTable"> <!-- Presenter Section -->
                        <tr>
                            <td>
                                <b>Presenters:</b>
                            </td>
                            <td>
                                <%# Item.Ret_Presenters %>                       
                            </td>
                        </tr>
                    </table> 
                    <p></p>
                                        
                    <table class="categoryTableDate"> <!-- Date Section -->
                        <tr>
                            <td>
                                <b>Date:</b>
                            </td>
                            <td>
                                <%# dateFormat(Item.Ret_Dates) %>                       
                            </td>
                        </tr>
                    </table> 
                    <p></p>
                    
                    <table class="categoryTable"> <!-- Time Section -->
                    <tr>
                        <td><b>Time:</b></td>
                        <td><%# Item.Ret_Checkin %></td>
                    </tr>
                    </table> 
                    <p></p>

                    <table class="categoryTable"> <!-- About/Theme: Section -->
                    <tr>
                        <td><b>About/Theme:</b></td>
                        <td><%# Item.Ret_About %></td>
                    </tr>
                    </table> 
                    <p></p>
                     
                    <table class="categoryTable"> <!-- Cost Section -->
                    <tr>
                        <td><b>Cost:</b></td>
                        <td><h4><%# Item.Ret_Cost.ToString("c") %></h4></td>
                    </tr>
                    </table> 
                    <p></p>       
                                        
                    <!-- Cart Button-->
                    <button class="myButton" name="add" type="submit" value="<%# Item.Ret_ID %>">Place Reservation</button>
                    <hr />
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    						


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SidebarContent" runat="server">
   <SS:CatLinks ID="CatLinks1" runat="server" />
</asp:Content>
